<?php

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$template_path = $this->baseurl.'/templates/buocchanhaithehe/';
global $mainframe;
$view= JRequest::getVar( 'view' );
$option = JRequest::getCmd('option');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>

<script type="text/javascript" src="<?php echo $template_path; ?>js/jquery-1.7.1.min.js"></script>

<jdoc:include type="head" />

<?php JHTML::_('behavior.mootools'); ?>

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/buocchanhaithehe/css/style.css" type="text/css" />
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.74.js"></script>

<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->

<script type="text/javascript" src="<?php echo $template_path; ?>js/jquery.colorbox-min.js"></script>
<script type="text/javascript" src="<?php echo $template_path; ?>js/cufon-yui.js"></script>
<script type="text/javascript" src="<?php echo $template_path; ?>js/gloria.js"></script>

<script type="text/javascript">
    Cufon.replace('.name_web',{fontSize:'30px'});
    Cufon.replace('.home .moduletable h3 a, .comments_title, .title_page_sub, .art_text .article_title, .blog_more strong, .component .componentheading, .igallery .car-title');    
</script>
<script type="text/javascript">
jQuery(function(){

	  

<?php if($view == 'frontpage'): ?>
	
  	jQuery('.top-slider')
      .cycle({
          //pager:  '#nav',
          //timeout: 1000,
          //speed: 1000,
  
          fx:     'fade',
          next:   '#top-slider-next',
          prev:   '#top-slider-prev'
      });
      
    
  
<?php elseif($option == 'com_igallery'): ?>

jQuery("a[rel='igallery1']").colorbox();



<?php endif; ?>

});
</script><!-- #end script -->

</head>
<body id="page_bg" >
    <div class="body"> 
        <div class="top">
            <div class="h25"></div>
            <div class="header width_900">
                <div class="logo fl">
                    <a href="<?php echo JURI::root(); ?>">
                       <img src="<?php echo $template_path; ?>images/logo.png" />
                    </a>
                </div>
                <div class="name_web fl"><h1><a href="<?php echo JURI::root(); ?>"><?php echo $mainframe->getCfg('sitename') ; ?></a></h1></div>
                <div class="header_menu fl">
                    <jdoc:include type="modules" name="top" />
                </div>
                <br clear="all"/>
            </div>
        </div> <!-- #end top -->


        <div class="wrap width_900">
            <!-- home view -->
            <?php if ($view == 'frontpage'): 
            ?>
                   <?php if ($this->countModules('home_slider')): ?>
                    <div class="slider">
                         <jdoc:include type="modules" name="home_slider" />
                         
                         <div class="intro">
                            <?php if ($this->countModules('home_intro')): ?>
                                <jdoc:include type="modules" name="home_intro" />
                            <?php endif; ?>
                        </div><!--#intro-->
                    </div>
                    <?php endif; ?>
                      
                    <br clear="all" />
                    <div class="content home">
                        <?php if ($this->countModules('home_image_link')): ?>
                            <jdoc:include type="modules" name="home_image_link" style="image_link"/>
                        <?php endif; ?>
                            <br clear="all" />
                        <?php if ($this->countModules('home_comment')): ?>
                          <div class="wrap_comments">
                            <div class="wrap_comments_title">
                                <div class="comments_title fl"><a>Ý Kiến Đóng Góp</a></div>
                                <div class="send_coments fr"><a href="<?php echo JRoute::_('index.php?option=com_jcomments&Itemid=57&lang=vi'); ?>">Gửi Ý Kiến Đóng Góp</a><img src="<?php echo $template_path; ?>images/arow.png" /></div>
                                <br clear="all" />
                            </div>
                            <br clear="all" />
                            <jdoc:include type="modules" name="home_comment" />
                          </div><!-- #wrap_comment -->
                        <?php endif; ?>
                    </div> 
              <?php else: ?>
                    <!--normal page -->
                    <?php if ($this->countModules('breadcrumb')): ?>
                    <div class="pathway width_900">
                        <jdoc:include type="modules" name="breadcrumb" />
                    </div>
                    <?php endif; ?>
                    <jdoc:include type="message" />
                    <div class="component">
                       
                        <div class="content_center_page group">
                            <jdoc:include type="component" />
                        </div>
                       
                    </div>
                    <!--#normal page -->
              <?php endif; ?>
            <!-- #home view -->
        </div><!-- #end wrap -->


        <div class="wrap_footer">
            <div class="footer width_900">
                <?php if($this->countModules('footer')): ?>
                    <jdoc:include type="modules" name="footer" />                
                <?php endif;; ?>
            </div>
        </div><!-- #end wrap_footer -->
    </div>
<jdoc:include type="modules" name="debug" />
</body>
</html>
